package com.generico.frame.impl;

import android.app.Activity;   
import android.content.Context;
import android.opengl.GLSurfaceView;
import android.opengl.GLSurfaceView.Renderer;
import android.os.Bundle;
import android.os.PowerManager;
import android.os.PowerManager.WakeLock;
import android.view.Window;
import android.view.WindowManager;
import com.generico.frame.Audio;
import com.generico.frame.FileIO;
import com.generico.frame.Game;
import javax.microedition.khronos.egl.EGLConfig;
import javax.microedition.khronos.opengles.GL10;

import com.generico.frame.Game;
import com.generico.frame.impl.AndroidAudio;
import com.generico.frame.impl.AndroidFileIO;


public abstract class GLGame extends Activity implements Game, Renderer {
	
	Audio audio;
	FileIO fileIO;
	
	 protected void onCreate(Bundle savedInstanceState) {
	        super.onCreate(savedInstanceState);
	        
	        fileIO = new AndroidFileIO(getAssets());
	        audio = new AndroidAudio(this);

	}
	 
	public FileIO getFileIO() {
        return fileIO;
    }
    
	public Audio getAudio() {
        return audio;
    }
	
}